import request from '@/utils/request'

// 查询浆纱上机记录列表
export function listJsrecord(query) {
  return request({
    url: '/mes/jsrecord/list',
    method: 'get',
    params: query
  })
}

// 查询浆纱上机记录详细
export function getJsrecord(id) {
  return request({
    url: '/mes/jsrecord/' + id,
    method: 'get'
  })
}

// 新增浆纱上机记录
export function addJsrecord(data) {
  return request({
    url: '/mes/jsrecord',
    method: 'post',
    data: data
  })
}

// 修改浆纱上机记录
export function updateJsrecord(data) {
  return request({
    url: '/mes/jsrecord',
    method: 'put',
    data: data
  })
}

// 删除浆纱上机记录
export function delJsrecord(id) {
  return request({
    url: '/mes/jsrecord/' + id,
    method: 'delete'
  })
}

// 导出浆纱上机记录
export function exportJsrecord(query) {
  return request({
    url: '/mes/jsrecord/export',
    method: 'get',
    params: query
  })
}


// 导出浆纱上机记录
export function liaoji(id) {
  return request({
    url: '/mes/jsrecord/liaoji/' + id,
    method: 'get',
  })
}
